<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateIdentificationsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('identifications', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 191)->nullable()->comment("名称");
            $table->string('phone', 191)->nullable()->comment("手机");
            $table->string('identity_card', 191)->nullable()->comment("身份证");
            $table->string('bank_card', 191)->nullable()->comment("银行卡");
            $table->string('validity2_res', 191)->nullable()->comment("验证结果");
            $table->string('validity4_res', 191)->nullable()->comment("验证结果");
            $table->integer('user_id')->nullable()->default(null)->comment("用户id");
            $table->integer('validity')->default(1)->comment("真实度");
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('identifications');
    }
}
